import service from '@/utils/request.js'; // 引入封装的 axios 实例

const chatApi = {
	getHistory:'/chat/history',//获取聊天记录
	postSend:'/chat/send'
};

// 发送信息
export const postSend = (data) => {
  return service.post(chatApi.postSend, data);
};

//获取聊天记录
export const getHistory = (pageNo, pageSize,targetId) => {
  return service.get(chatApi.getHistory,{
    params: { pageNo, pageSize, targetId}
  });
};

